package edu.swe632.otm.resources;

import java.util.ArrayList;
import java.util.List;

public class Route {

	private String name;
	
	private List<String> addresses;
	
	private Endpoints endpoint;
	
	private String creatorUserName;
	
	private String creatorComputerId;
	

	public String getCreatorUserName() {
		return creatorUserName;
	}

	public void setCreatorUserName(String creatorUserName) {
		this.creatorUserName = creatorUserName;
	}

	public String getCreatorComputerId() {
		return creatorComputerId;
	}

	public void setCreatorComputerId(String creatorComputerId) {
		this.creatorComputerId = creatorComputerId;
	}

	public Endpoints getEndpoint() {
		return endpoint;
	}

	public void setEndpoint(Endpoints endpoint) {
		this.endpoint = endpoint;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String toString()
	{
		return name + " / " + endpoint.toString() +
		" by " + creatorComputerId + " (" + creatorUserName + ")";
	}

	public void setAddresses(List<String> addresses) {
		this.addresses = new ArrayList<String>(addresses);
	}
	
	public List<String> getAddresses()
	{
		return new ArrayList<String>(addresses);
	}
}
